home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Power DOS 1996 July
/
Power DOS - July 1996.iso
/
sound
/
c_labs
/
sb16
/
upg303.exe
/
UPGRADE.BAT
< prev
Wrap
DOS Batch File
|
1994-09-01
|
5KB
|
112 lines
cls
@if "%1"=="" goto need_directory
@echo *********************************************************************
@echo * *
@echo * EZ-SCSI 3.03 - Upgrade Program *
@echo * ------------------------------ *
@echo * *
@echo * Welcome to the EZ-SCSI 3.03 Upgrade Program. In order *
@echo * for this upgrade program to run successfully you need to *
@echo * have a previous version of EZ-SCSI already installed on *
@echo * your system. *
@echo * *
@echo * *
@echo * This program will create the directory \OLDSYS where *
@echo * the older version of your software will be stored. *
@echo * Consult the README.TXT file for further information *
@echo * on this upgrade program. *
@echo * *
@echo *********************************************************************
@rem pause
@rem
@rem ----------------------------------------------------------------------
@rem Note: %1 = user's path for where ezscsi is installed on their drive.
@rem We redirect the output of the upgrade procedure to the file
@rem UPINFO.TXT.
@rem Currently this file contains nothing more than the header for
@rem the RTPatch program, but we can allow it to contain all of the
@rem information regarding the upgrade procedure by rebuilding the
@rem patch with NOMESSAGE and QUITE eliminated from the configuration
@rem set.
@rem -----------------------------------------------------------------------
@echo Performing upgrade...please wait
@echo (This process can take up to 5 minutes depending on your system.)
@echo ...working...
@echo.
@echo.
@rem
@rem
@rem -----------------------------------------------------------------------
@rem PATCH.EXE and PATCH.RTP, the two files necessary to carry out the
@rem patch program are renamed to reduce confusion for customer to *.inc.
@rem Here is where we rename them back to their executable extensions to
@rem allow the patch to operate. We rename them back to *.inc at the end
@rem of this program.
@rem -----------------------------------------------------------------------
@rename patch1.inc patch.exe
@rename patch2.inc patch.rtp
@patch %1 > UPINFO.TXT
@if ERRORLEVEL 1 goto failed_upgrade
@rem -----------------------------------------------------------------------
@rem Here we copy the upgrade readme file to the user's EZ-SCSI directory.
@rem -----------------------------------------------------------------------
@del UPINFO.TXT
@echo Upgrade Complete!
@echo.
@echo.
@echo Copying README.TXT to %1 ...
@copy readme.txt %1
@echo.
@echo.
@if ERRORLEVEL 1 goto failed_readme_copy
@goto end
:need_directory
@cls
@echo **********************************************************************
@echo * *
@echo * You need to type the directory of your current EZ-SCSI *
@echo * installation after UPGRADE as follows: *
@echo * *
@echo * UPGRADE C:\SCSI *
@echo * *
@echo **********************************************************************
@pause
@goto failed
:failed_upgrade
cls
@echo Upgrade failed!
@rem --------------------------------------------------------------------
@rem Renaming patch files back to non-executable extensions
@rem --------------------------------------------------------------------
@rename patch.exe patch1.inc
@rename patch.rtp patch2.inc
@pause
@goto failed
:failed_readme_copy
@cls
@echo Upgrade was successful!
@echo Unable to copy README.TXT to %1
@rem --------------------------------------------------------------------
@rem Renaming patch files back to non-executable extensions
@rem --------------------------------------------------------------------
@rename patch.exe patch1.inc
@rename patch.rtp patch2.inc
@goto failed
:end
@rem --------------------------------------------------------------------
@rem Renaming patch files back to non-executable extensions
@rem --------------------------------------------------------------------
@rename patch.exe patch1.inc
@rename patch.rtp patch2.inc
@echo Upgrade program completed.
@echo.
@pause
cls
:failed